import { Request } from "@/views/util/request"
//异常列表查询
async function getAbnormalList(data){
    return await Request.post('/garbageSys/exceptionReport/getList',data)
}
//获取异常设备的详情
async function getDeviceDetails(data){
    return await Request.get(`/garbageSys/exceptionReport/getInfo/${data.id}`,data)
}
//获取异常工单列表
async function getAbnormalTips(data){
    return await Request.post('/garbageSys/exceptiongd/getList',data)
}
//编辑异常上报的数据
async function modifyAbnormalReportNews(data){
    return await Request.post('/garbageSys/exceptionReport/update',data)
}
//获取异常工单详情
async function getAbnormalListDetails(data){
    return await Request.get(`/garbageSys/exceptiongd/getOneList/${data.id}`,data)
}
//添加异常工单数据
async function addAbnormalListNews(data){
    return await Request.post('/garbageSys/exceptiongd/insert',data)
}
export {getAbnormalList,getDeviceDetails,getAbnormalTips,modifyAbnormalReportNews,getAbnormalListDetails,addAbnormalListNews}